use std::{ sync::Arc};

use common::utils::config_utils::Config;
use sea_orm::{DatabaseConnection};

pub mod controller;
pub mod service;
pub mod mapper;
pub mod middleware;
pub mod pojo;
pub mod model;
pub mod entity;

#[derive(Clone)]
pub struct AppState{
    pub config:Arc<Config>,
    pub db:Arc<DatabaseConnection>,
    pub user_service:Arc<service::user_service::UserService>
}